﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Data;

namespace XWord.WPF.ApplicationFramework.Validations
{
    public class RequiredValidator :Validator
    {
        public RequiredValidator()
        {
            ErrorMessage = "值不得為空,并不能為空格";
        }

        public override bool Validate()
        {
            if (Property == null) return false;
            return !string.IsNullOrEmpty(Property.ToString().Trim());
        }

      
    }
}
